home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: lyra.csx.cam.ac.uk!warwick!bsmail!talisker!nathan
- From: nathan@pact.srf.ac.uk (Nathan Sidwell)
- Subject: Re: What is NULL?
- Message-ID: <DMnxvo.D3n@uns.bris.ac.uk>
- Sender: usenet@uns.bris.ac.uk (Usenet news owner)
- Nntp-Posting-Host: talisker.pact.srf.ac.uk
- Organization: Inmos
- X-Newsreader: TIN [version 1.2 PL2]
- References: <311F918A.42AC@lls.se>
- Date: Mon, 12 Feb 1996 12:40:35 GMT
-
- Mattias Wahlberg (matjo@lls.se) wrote:
- : Hi there,
-
- : In ANSI-C NULL is defined as (void*) 0. In MSVC++ it is defined as 0.
-
- : What is the definition of NULL in the forth-coming ANSI-C++?
-
- Section 18.1 says
- 'The macro NULL is an implementation-defined C++ null-pointer constant'
- A footnote says,
- 'Possible definitions include 0 and 0L, but not (void *)0'
-
- (void *)0 would cause problems, because C++ conversion from void is
- different than for ANSI C.(C++ requires a diagnostic)
-
- nathan
-
- --
- Nathan Sidwell Holder of the Xmris home page
- Chameleon Architecture Group at SGS-Thomson, formerly Inmos
- http://www.pact.srf.ac.uk/~nathan/ Tel 0117 9707182
- nathan@inmos.co.uk or nathan@bristol.st.com or nathan@pact.srf.ac.uk
-